package com.maimao.api.auth;

import com.maimao.core.model.resp.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.Map;

/**
 * @author MaoLin Wang
 * @date 2020/12/14 1:28 下午
 */
@Api(value = "认证接口", tags = {"用户认证"})
public interface CodeApi {

    @ApiOperation("获取手机验证码")
    Result<String> mobileCode(Map<String, String> data, Integer defaultMobile);

    @ApiOperation("获取图形验证码")
    void imageCode() throws IOException, IOException;
}
